package com.dcd.service;

import com.dcd.pojo.Energy;
import com.dcd.service.impl.EnergyServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Component
@FeignClient(name = "donchedi-provider9091", fallback = EnergyServiceImpl.class, contextId = "energy")
public interface EnergyService {

    /**
     * 查询全部能源
     *
     * @return
     */
    @RequestMapping("/select_all_energy")
    List<Energy> select_all_energy();

}
